JavaScript

{dialog.object}customSetting Method

Syntax

{dialog.object}.customSetting(UXControlCustomSettingName [, value]);

Arguments

UXControlCustomSettingName

The custom setting to get or set. Custom setting names are case sensitive.

value

Optional. Required if you want to set the value of the custom setting. If defined, sets the value of the custom setting.

Description

Get or Set the value of a custom setting.

Discussion

Custom settings are defined in the Properties pane of the UX Builder.

Example

//Read value in 'setting1' custom setting.
var setting1 = {dialog.object}.customSetting('setting');

//Set the value in the 'setting1' custom setting
{dialog.object}.customSetting('setting1','new value for setting');